package cn.sc.summer.protocol.form.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 类名：角色绑定路由
 *
 * @author a-xin
 * @date 2023/12/1 13:53
 */
@Data
@Accessors(chain = true)
@ApiModel("角色绑定路由")
public class RoleBindForm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    @NotBlank(message = "角色ID不能为空!")
    @ApiModelProperty(value = "角色ID")
    private String roleId;

    /**
     * 路由ID
     */
    @NotEmpty(message = "路由ID不能为空!")
    @ApiModelProperty(value = "路由ID")
    private List<String> routeIds;

}
